﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.JD_Pay
{
    #region  获取openid
    /// <summary>
    ///  获取openid 提交参数
    /// </summary>
    public class GetOpenid_Params : JD_Api_Base_Params
    {
        public GetOpenid_Params()
        {
            this.Request_URL = CodeContent.Api_Url.GetOpenid;
        }  
        /// <summary>
        /// 商户侧获取openId成功后的回调地址
        /// </summary>
        public string successPageUrl { get; set; }
        /// <summary>
        /// ALIPAY(支付宝支付) WX(微信支付),
        /// </summary>
        public string piType { get; set; }
        /// <summary>
        /// 系统号
        /// </summary>
        public string systemId { get; set; }
    }

    public class getopenid_result
    {
        public getopenid_result_code code { get; set; }
        public string msg { get; set; }
        public string openid { get; set; }

        public string url { get; set; }
    }
    public enum getopenid_result_code
    {
        获取成功 = 1,
        获取失败 = 2,
        参数不全 = 3,
        需要跳转 = 4
    }
    #endregion
}
